package com.example.service.impl;


import com.example.entity.domain.MpUserInfo;
import com.example.entity.mapper.MpUserInfoMapper;
import com.example.service.base.impl.BaseServiceImpl;
import com.example.service.inter.MpUserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @Author: lex
 * @Date: 2018/11/14
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class MpUserInfoServiceImpl extends BaseServiceImpl<MpUserInfoMapper, MpUserInfo> implements MpUserInfoService {

    @Autowired
    private MpUserInfoMapper mpUserInfoMapper;

    @Override
    public MpUserInfo findUserAndPermsByUsername(String username) {
        return mpUserInfoMapper.findUserAndPermsByUsername(username);
    }
}
